/**
 * networkframe.h
 *
 * network layer radio frequency frame access.
 *
 * Copyright (c) sti-seedclass 2011, tankery.chen@gmail.com
 */
#ifndef __NETWORK_FRAME_H_
#define __NETWORK_FRAME_H_

#define NETWORK_FRAME_SIZE  6
#define NETWORK_DATA_SIZE   4

// Macro for frame access.
#define NETWORK_FRAME_LIFE_BYTE(frame) frame[0]
#define NETWORK_FRAME_ADDR_BYTE(frame) frame[1]
#define NETWORK_FRAME_DATA_LENGTH(frame) NETWORK_DATA_SIZE
#define NETWORK_FRAME_DATA_POINTER(frame) (frame+2)

#endif // __NETWORK_FRAME_H_

